
public class Person {

	int age1;
 	 private int age;
 	 public void setAge(int _age){
 		 if(_age<0){
 			 System.out.println("你输入的年龄不合法!");
 		 }else{
 			 
 		 }
 	
        age1=_age;
 	 }
 	 public int getAge(){
 		 return age1;
 	 }
 	 	 void speak(){
 	 	 	System.out.println("我的年龄是"+age1);
 	 	 }

	}


